Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Spatial Java API Reference 10g Release 2 (10.2) B14373-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.spatial.network
Class PartitionKmeansImpl

`java.lang.Object
oracle.spatial.network.PartitionKmeansImpl`

All Implemented Interfaces:
  Partition

public class PartitionKmeansImpl
extends java.lang.Object
implements Partition

This class offers a database implementation of k-means algorithm that partition the spatial network.

Constructor Summary
`PartitionKmeansImpl(java.sql.Connection connection, java.lang.String networkName, int numPartition)` Constructor.

Method Summary
`double` | `getExternalCost()`
`void` | `partitionNetwork()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PartitionKmeansImpl

    public PartitionKmeansImpl(java.sql.Connection connection,
                               java.lang.String networkName,
                               int numPartition)
                        throws java.sql.SQLException,
                               NetworkDataException

  Constructor.
Parameters:
  `connection` -
  `networkName` -
  `numPartition` -

Method Detail

### getExternalCost

    public double getExternalCost()

  Specified by:
    `getExternalCost` in interface `Partition`

### partitionNetwork

    public void partitionNetwork()
                          throws NetworkDataException

  Specified by:
    `partitionNetwork` in interface `Partition`
  Throws:
    `NetworkDataException`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Spatial Java API Reference 10g Release 2 (10.2) B14373-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005, Oracle. All Rights Reserved.